Hopp til hovedinnhold

Advanced Tamagotchi Implementation

GitHub Repo Last Update PlatformIO LVGL

Banner

📌 Overview

Final implementation featuring:

  • 160x128 ST7735 TFT display
  • ESP32-S3-WROOM-N16R8 module
  • Hybrid graphics system (PNG + C-array)
  • Power-aware operation

Game UI

🌟 Key Features

CategoryDetails
AudioPWM buzzer control with MIDI-like sequencing
StorageCustom partition scheme (OTA + NVS + assets)
GraphicsDual rendering modes (direct/C-array)
Power5μA deep sleep with RTC wakeup

🛠 Technical Highlights

  • Framework: ESP-IDF 5.1 + LVGL 8.3.8
  • Core Functionality:
    • PNG decoder with DMA transfer
    • Adaptive frame rate control
    • CRC-32 protected save files
    • 4-button predictive text input
  • Performance: 45 FPS sustained rendering
  • Power: Battery health monitoring system
typedef struct {
uint8_t hunger;
uint8_t hygiene;
uint32_t experience;
time_t last_interaction;
uint16_t checksum;
} persistent_data_t;